<?php

/**
 * BaseImportacion
 * 
 * This class is member of the DAO layer.
 * 
 * @property integer $id
 * @property integer $nroSemana
 * @property timestamp $fSalida
 * @property timestamp $fArribo
 * @property string $obs
 * @property timestamp $fInsert
 * @property Doctrine_Collection $Tcontenedor
 * 
 * @author     Claudio Corlatti <corlatti@gmail.com>
 *  $Id: BaseImportacion.php 12 2010-07-06 04:34:57Z corlatti $
 */
abstract class BaseImportacion extends Doctrine_Record {
    public function setTableDefinition()
    {
        $this->setTableName('importacion');
        $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'unsigned' => 1, 'primary' => true, 'autoincrement' => true));
        $this->hasColumn('nroSemana', 'integer', 4, array('type' => 'integer', 'length' => 4, 'unsigned' => 1, 'default' => '0', 'notnull' => true));
        $this->hasColumn('fSalida', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
        $this->hasColumn('fArribo', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
        $this->hasColumn('obs', 'string', 400, array('type' => 'string', 'length' => 400));
        $this->hasColumn('fInsert', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
    }

    public function setUp()
    {
        $this->hasMany('Tcontenedor', array('local' => 'id',
                                            'foreign' => 'idImportacion'));
    }
}
?>